﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 财务记账表
    /// </summary>
    public class FinancialRecords
    {
        /// <summary>
        /// 财务记账表--主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int RecordID {  get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string DocumentNumber {  get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Category { get; set; }
        /// <summary>
        /// 收款方/付款方
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Party { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Type { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime PaymentTime { get; set; }
        /// <summary>
        /// 付款方式
        /// </summary>
        /// 
        [MaxLength(50)]
        public string PaymentMethod { get; set; }
        /// <summary>
        /// 付款机构
        /// </summary>
        /// 
        [MaxLength(50)]
        public string PayingAgency { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
